A continue statement skips the current iteration of the loop that you are in. In the case of while, you go back to the expression to see whether the loop should continue.

In this case, we print every number except 5, since we elect to continue if i is 5, before we print the value of i.

You can learn more about this in:
Run Expand Edit